<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<script type="text/javascript">

</script>
<div class="content-wrap">
    <div class="wrapper" style="bottom: 50px;">
        <ul class="nav nav-tabs">
            <li class="active">
                <a href="#">入库记录详情</a>
            </li>
        </ul>
        <section class="panel panel-default">
            <div class="panel-body">
                <div class="table-responsive no-border">
                    <a href="#" onclick="Print('${drugImportDetail.masterId}')" class="btn btn-primary" style="margin-bottom: 10px">打印</a>
                    <table id="itemTable" class="table table-bordered mg-t datatable">
                        <thead>
                        <tr>
                            <th>药品名称</th>
                            <th>规格</th>
                            <th>单位</th>
                            <th>厂家</th>
                            <th>批号</th>
                            <th>有效期</th>
                            <th>进货价</th>
                            <th>包装规格</th>
                            <th>数量</th>
                        <%--<th>进价金额</th>--%>
                            <%--<th>领药单位</th>--%>
                            <%--<th>领药子单位</th>--%>
                            <%--<th>入库单号</th>--%>
                            <%--<th>入库日期</th>--%>
                            <%--<th>入库单号</th>--%>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach items="${drugImportDetailList}" var="drugImportList">
                        <tr>
                            <td> ${drugImportList.drugCode}</td>
                            <td> ${drugImportList.minSpec}</td>
                            <td> ${fns:getDictLabels(drugImportList.packageUnits, 'SPEC_UNIT', '')}</td>
                            <td> ${drugImportList.remarks}</td>
                            <td> ${drugImportList.batchNo}</td>
                            <td><fmt:formatDate value="${drugImportList.expireDate}" pattern="yyyy-MM-dd"/></td>
                            <td> ${drugImportList.purchasePrice}</td>
                            <td> ${drugImportList.packageSpec}</td>
                            <td> ${drugImportList.quantity/drugImportList.packageNum}</td>

                                <%--<td> ${drugImportList.packageSpec}</td>--%>
                                <%--<td> ${drugImportList.packageSpec}</td>--%>
                                <%--<td> ${drugImportList.packageSpec}</td>--%>
                                <%--<td> ${drugImportList.packageSpec}</td>--%>
                                <%--<td> ${drugImportList.packageSpec}</td>--%>
                                <%--<td> ${drugImportList.packageSpec}</td>--%>
                        </tr>
                        </c:forEach>
                    </table>
                </div>
            </div>
        </section>
    </div>
</div>
<script>
    function Print(masterId){
        printPdf('${ctx}/drug/drugDetails/drugImportDetailsPrint?masterId='+masterId);
    }
</script>